class User:
    def __init__(self, name, age, role):
        self.name = name
        self.age = age
        self.role = role
    
    def __str__(self):
        return "User: %s, %s,%s" % (self.name, self.age,self.role)
    
    def getDetails(self):
        return "User Details : Name: %s, Age: %s" % (self.name, self.age)

#  每个模块都有一个__name__属性，当其值是'__main__'时，表明该模块自身在运行，否则是被引入。
if __name__ == '__main__': 
    print("User module executed")
else:
    print("User module imported")

class UserRole:
    def __init__(self, role):
        self.role = role
    def __str__(self) :
        return f" Role: {self.role}"